﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
         CodeBehind="FoodBooking.aspx.cs" Inherits="LuxuryResort.WebSite.Members.FoodBooking" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Food Booking</h1>
    <fieldset>
        <legend>Food/Beverage Booking</legend>
        <table class="customerInformation">
            <tr>
                <td style="width: 20%">
                    Customer Name
                </td>
                <td>
                    <asp:TextBox ID="txtCustomerName" runat="server"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtCustomerName" Display="Static" ErrorMessage="You must input Customer Name" CssClass="failureNotification"></asp:RequiredFieldValidator>       
                </td>
            </tr>
        </table>
        <asp:ListView ID="lvFood" runat="server">
            <LayoutTemplate>
                <table class="roomList">
                    <tr>
                        <th style="width: 10%">
                            Item Name
                        </th>
                        <th>
                            Type
                        </th>
                        <th>
                            Quantity
                        </th>
                        <th>
                            Price Unit
                        </th>
                    </tr>
                    <tr runat="server" id="itemPlaceholder">
                    </tr>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td style="text-align: left; width: 10%;">
                        <asp:Label ID="lblItemName" runat="server" Text='<%#Eval("Name") %>' />
                        <asp:HiddenField ID="hidFid" runat="server" Value='<%#Eval("FID") %>' />                        
                    </td>
                    <td style="text-align: center">
                        <asp:Label ID="lblType" runat="server" Text='<%#Eval("Type") %>' />
                    </td>
                    <td style="text-align: center">
                        <asp:TextBox ID="txtQuantity" runat="server" CssClass="innerTextBox" onkeypress="return isNumber(event);" />                        
                    </td>
                    <td style="text-align: center; width: 10%;">
                        <asp:Label ID="lblPrice" runat="server" Text='<%#Eval("PriceUnit") %>' />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
        <asp:CheckBox ID="chkPaymentDone" runat="server" Text="Done Payment" />
        <br />
        <asp:Button ID="btnBookFood" runat="server" Text="Order" CssClass="normalButton"
                    onclick="btnBookFood_Click" />
    </fieldset>
</asp:Content>